package com.ncu.cloundeoffice.pojo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.print.attribute.standard.MediaSize;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class TEmployee {
    private int id;
    @Excel(name = "姓名")
    private String name;
    @Excel(name = "性别")
    private String gender;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    @Excel(name = "出生日期",width = 20, format = "yyyy-MM-dd")
    private Date birthday;
    @Excel(name = "身份证号", width = 30)
    private String idCard;
    @Excel(name = "婚姻状况")
    private String wedlock;
    private int nationId;
    @Excel(name = "籍贯")
    private String nativePlace;
    private int politicId;
    @Excel(name = "邮箱", width = 30)
    private String email;
    @Excel(name = "电话号码" , width = 15)
    private String phone;
    @Excel(name = "联系地址" , width = 40)
    private String address;
    private int departmentId;
    private int jobLevelId;
    private int posId;
    @Excel(name = "聘用形式")
    private String engageForm;
    @Excel(name = "最高学历")
    private String tiptopDegree;
    @Excel(name = "所属专业")
    private String specialty;
    @Excel(name = "毕业院校")
    private String school;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    @Excel(name = "入职日期",width = 20, format = "yyyy-MM-dd")
    private Date beginDate;

    @Excel(name = "在职状态")
    private String workState;
    @Excel(name = "工号")
    private String workId;
    @Excel(name = "合同期限",suffix = "年")
    private double contractTerm;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    @Excel(name = "转正日期", width = 20,format = "yyyy-MM-dd")
    private Date conversionTime;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private Date notWorkDate;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    @Excel(name = "合同起始日期", width = 20,format = "yyyy-MM-dd")
    private Date beginContract;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    @Excel(name = "转合同终止日期", width = 20,format = "yyyy-MM-dd")
    private Date endContract;

    private int workAge;
    private int salaryId;


    //民族
    @ExcelEntity(name = "民族")
    private TNation tNation;

    //政治面貌
    @ExcelEntity(name = "政治面貌")
    private TPoliticsStatus tPoliticsStatus;

    //部门
    @ExcelEntity(name = "部门")
    private TDepartment tDepartment;

    //职称
    @ExcelEntity(name = "职称")
    private TJobLevel tJobLevel;

    //职位
    @ExcelEntity(name = "职位")
    private TPosition  tPosition;

    private TSalary tSalary;

}
